package com.gao.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gao.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author gaopeng
 * @time 2020/10/24 23:18:17
 */
public interface UserMapper extends BaseMapper<User> {

    List<User> customQuery(@Param(Constants.WRAPPER) Wrapper<User> wrapper);

    IPage<User> customPageQuery(Page<User> page, @Param(Constants.WRAPPER) Wrapper<User> wrapper);
}
